package com.zdsoft.finance.product.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import com.zdsoft.finance.base.service.impl.BaseServiceImpl;
import com.zdsoft.finance.common.base.CustomRepository;
import com.zdsoft.finance.product.entity.ProductFeeItem;
import com.zdsoft.finance.product.repository.ProductFeeItemRepository;
import com.zdsoft.finance.product.service.ProductFeeItemService;

/**
 * 产品费用项操作实现
 * @author longwei
 * @date 2016/11/22
 * @version 1.0
 */
@Service("productFeeItemService")
public class ProductFeeItemServiceImpl extends BaseServiceImpl<ProductFeeItem, CustomRepository<ProductFeeItem,String>> implements ProductFeeItemService{

	@Autowired
	private ProductFeeItemRepository productFeeItemRepository;

	@Override
	public Page<ProductFeeItem> findByProductId(String productId, Pageable pageable) {
		return productFeeItemRepository.findByProductId(productId,pageable);
	}

}
